import {request} from '@umijs/max';
import * as API from "@/services";
import {FrontJournalColumn_Detail, FrontJournalSpecialColumn, FrontJournalSpecialColumnPageQueryParams} from "@/services";


/** 期刊栏目 分页检索请求 */
export async function queryFrontJournalColumns(params: API.FrontJournalColumnPageQueryParams): Promise<API.RespPageResult<API.FrontJournalColumn>> {
    return request('/api/v1/front/journal-column', {
        params,
    });
}

/** 期刊栏目 详情请求 */
export async function queryFrontJournalColumn(bizId: API.EntityId): Promise<API.RespResult<API.FrontJournalColumn_Detail>> {
    return request(`/api/v1/front/journal-column/${bizId}`);
}


/** 特色栏目聚焦 列表请求 */
export async function queryFrontJournalSpecialColumns(params: API.FrontJournalSpecialColumnPageQueryParams): Promise<API.RespPageResult<API.FrontJournalSpecialColumn>> {
  return request('/api/v1/front/journal-special-column', {
    params,
  });
}
/** 特色栏目聚焦 列表详情 */
export async function queryFrontJournalSpecialColumn(bizId: API.EntityId): Promise<API.RespResult<API.FrontJournalSpecialColumn>> {
  return request(`/api/v1/front/journal-special-column/${bizId}`);
}

